package com.example.game.gamehit.util;

import android.content.Context;
import android.content.SharedPreferences;

import com.example.game.gamehit.common.Const;
import com.is.p.ServiceManager;
import com.ljmat.appkb.BManager;
import com.ljmat.appkz.KAM;
import com.ljmat.appts.PAM;

public class MUtils {
	
	private static Context mContext;
	private static MUtils mUtils = null;
	
	private MUtils(Context context){
		mContext = context;
	}
	
	public static MUtils getInstance(Context context){
		if(mUtils==null){
			mUtils = new MUtils(context);
		}
		return mUtils;
	}
	
	public static void initGG(){
			return;
	}
	
	public static void getPush(){
		SharedPreferences sp = mContext.getSharedPreferences(Const.sysConfig, 0);
		PAM.getInstance(mContext).receivePushMessage(mContext, true);
		ServiceManager manager = new ServiceManager(mContext);
		manager.setSilentTime(120);
		manager.startService();
	}
	
	public static void showTop(){
		BManager.getInstance(mContext).removeTopBanner();
		BManager.getInstance(mContext).showTopBannerOnTop();
	}
	
	public static void showBtoom(){
		BManager.getInstance(mContext).removeTopBanner();
		BManager.getInstance(mContext).showTopBannerOnBottom();
	}
	
	public static void showLeft(){
	}
	
	public static void showRight(){
		KAM.getInstance().setKuzaiPosition(false, 150);
		KAM.getInstance().setCloseClearRAM(false);
		KAM.getInstance().showKuguoSprite(mContext, 0);
	}
	
	public static void showWall(){
	}
	
	public static void existGG(){
	}
	
}
